import request from '@/utils/request'

export default{
    removeById(id) {
        return request({
          url: '/eduservice/chapter/'+id,
          method: 'delete'
        })
      },
    
      save(chapter) {
        return request({
          url: '/eduservice/chapter/save',
          method: 'post',
          data: chapter
        })
      },
    
      getById(id) {
        return request({
          url: '/eduservice/chapter/'+id,
          method: 'get'
        })
      },
    
      update(chapter) {
        return request({
          url: '/eduservice/chapter/update',
          method: 'post',
          data: chapter
        })
      }
}